package com.yjd.bi.loss.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.bi.loss.model.UserLossModel;

import java.util.Map;

/**
 * <b>description</b>：流失用户数表业务接口<br>
 * <b>time</b>：2018-06-28 11:06:59 <br>
 * <b>author</b>：  weili valie.lin@foxmail.com
 */
public interface IUserLossService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public UserLossModel insert(UserLossModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(UserLossModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;

	/**
	 * 获取在投用户数
	 * @param paramMap
	 * @return
	 */
	public Integer getUsersInvestingCount(Map<String, Object> paramMap)throws Exception;

}
